package com.chunxiadong.mapper;

import com.chunxiadong.entity.Type;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @auther QiuShangcheng
 * @create 2021/6/6
 */
@Mapper
@Repository
public interface TypeMapper {
    int addType(Type type);

    Type getType(Integer id);

    int updateType(Type type);

    int deleteType(Integer id);

    List<Type> getAllType();

}
